using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Comteck.Winforms.Infrastructure.ToExcel.Attributes {
  /// <summary>
  /// 忽略制定标记的属性值
  /// <see cref="https://gitee.com/godenSpirit/mto-excel/blob/master/MToExcel/Attributes/IgnoreType.cs"/>
  /// </summary>
  [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
  public class IgnoreTypeAttribute : Attribute {
    public IgnoreTypeAttribute() { }

    public IgnoreTypeAttribute(bool isIgnore) {
      this.IsIgnore = isIgnore;
    }

    /// <summary>
    /// 是否真的要隐藏该属性
    /// </summary>
    public bool IsIgnore { get; } = true;
  }
}
